 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/template/rich-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	
	<ui:define name="titulo">
		#{msgs['cadastroEmpresa.titulo']}
	</ui:define>
	
	<ui:define name="body">
		<h:form>
			<h:panelGroup layout="block" style="margin-top: 25px;">
				<h:panelGrid columns="2" styleClass="centralized">
					<h:outputLabel value="#{msgs['cadastroEmpresa.nome']}: " styleClass="required"/>
					<h:inputText label="#{msgs['cadastroEmpresa.nome']}" value="#{empresaMB.empresa.nome}" size="60" maxlength="100" required="true"/>
					
					<h:outputLabel value="#{msgs['cadastroEmpresa.cnpj']}: "/>
					<h:inputText value="#{empresaMB.empresa.cnpj}" size="18" maxlength="18"/>
				
					<h:outputLabel value="#{msgs['cadastroEmpresa.jornada']}: " styleClass="required"/>
					<h:panelGrid columns="2">
						<h:inputText label="#{msgs['cadastroEmpresa.jornada']}" value="#{empresaMB.empresa.jornada}" required="true" size="4" maxlength="5"/>
						<h:selectOneRadio value="#{empresaMB.unidadeTempoJornadaTrabalho}" label="#{msgs['cadastroEmpresa.unidadeTempoJornada']}" required="true">
							<f:selectItem itemLabel="#{msgs['label.horas']}" itemValue="H"/>
							<f:selectItem itemLabel="#{msgs['label.minutos']}" itemValue="M"/>
						</h:selectOneRadio>
					</h:panelGrid>
					
					<h:outputLabel value="#{msgs['cadastroEmpresa.tolerancia']}: "/>
					<rich:inputNumberSpinner label="#{msgs['cadastroEmpresa.tolerancia']}" value="#{empresaMB.empresa.tolerancia}" minValue="0" maxValue="60" enableManualInput="true" />
					
					<h:outputLabel value="#{msgs['cadastroEmpresa.diaIniPeriodo']}: " styleClass="required"/>
					<rich:inputNumberSpinner label="#{msgs['cadastroEmpresa.diaIniPeriodo']}" value="#{empresaMB.empresa.diaInicioPeriodo}" minValue="1" maxValue="31" enableManualInput="true" required="true"/>
					
					<h:outputText value="-" style="visibility: hidden;"/>
					<h:outputText value="-" style="visibility: hidden;"/>
					
					<h:panelGroup>
						<h:commandButton value="#{msgs['btn.salvar']}" action="#{empresaMB.salvar}"/>
						<h:commandButton value="#{msgs['btn.limpar']}" type="reset"/>
					</h:panelGroup>
				</h:panelGrid>
				
			</h:panelGroup>
		</h:form>
	</ui:define>
	
</ui:composition>